|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
Ws4J2eeDeployContextImpl.java | - | 0% | 0% | 0% |
|
1 |
/*
|
|
2 |
* Copyright 2001-2004 The Apache Software Foundation.
|
|
3 |
*
|
|
4 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5 |
* you may not use this file except in compliance with the License.
|
|
6 |
* You may obtain a copy of the License at
|
|
7 |
*
|
|
8 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9 |
*
|
|
10 |
* Unless required by applicable law or agreed to in writing, software
|
|
11 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13 |
* See the License for the specific language governing permissions and
|
|
14 |
* limitations under the License.
|
|
15 |
*/
|
|
16 |
|
|
17 |
package org.apache.geronimo.ews.ws4j2ee.toWs.impl;
|
|
18 |
|
|
19 |
import java.io.File;
|
|
20 |
import java.util.HashMap;
|
|
21 |
import java.util.Map;
|
|
22 |
|
|
23 |
import org.apache.axis.wsdl.fromJava.Emitter;
|
|
24 |
import org.apache.geronimo.ews.ws4j2ee.module.Module;
|
|
25 |
import org.apache.geronimo.ews.ws4j2ee.module.ModuleFactory;
|
|
26 |
import org.apache.geronimo.ews.ws4j2ee.toWs.GenerationConstants;
|
|
27 |
import org.apache.geronimo.ews.ws4j2ee.toWs.Ws4J2eeDeployContext;
|
|
28 |
|
|
29 |
/**
|
|
30 |
* @author hemapani@opensource.lk
|
|
31 |
*/
|
|
32 |
public class Ws4J2eeDeployContextImpl implements Ws4J2eeDeployContext { |
|
33 |
protected String implStyle = GenerationConstants.USE_INTERNALS;
|
|
34 |
protected HashMap map;
|
|
35 |
protected String j2eeContainer = GenerationConstants.GERONIMO_CONTAINER;
|
|
36 |
|
|
37 |
protected boolean compile = false; |
|
38 |
/**
|
|
39 |
* Field module
|
|
40 |
*/
|
|
41 |
protected Module module;
|
|
42 |
|
|
43 |
/**
|
|
44 |
* Field moduleLocation
|
|
45 |
*/
|
|
46 |
protected String moduleLocation;
|
|
47 |
|
|
48 |
/**
|
|
49 |
* Field outputLocation
|
|
50 |
*/
|
|
51 |
protected String outputLocation;
|
|
52 |
|
|
53 |
/**
|
|
54 |
* Constructor GeronimoWsDeployContext
|
|
55 |
*
|
|
56 |
* @param moduleLocation
|
|
57 |
* @param outputLocation
|
|
58 |
*/
|
|
59 | 0 |
public Ws4J2eeDeployContextImpl(String moduleLocation,
|
60 |
String outputLocation, |
|
61 |
ClassLoader parentCL, |
|
62 |
String implStyle, |
|
63 |
String j2eeContiner,HashMap map) { |
|
64 | 0 |
module = |
65 |
ModuleFactory.createPackageModule(moduleLocation, parentCL,new File(outputLocation) );
|
|
66 | 0 |
this.moduleLocation = moduleLocation;
|
67 | 0 |
this.outputLocation = outputLocation;
|
68 | 0 |
this.implStyle = implStyle;
|
69 | 0 |
this.j2eeContainer = j2eeContiner;
|
70 | 0 |
this.map = map;
|
71 |
} |
|
72 |
|
|
73 |
/**
|
|
74 |
* Constructor GeronimoWsDeployContext
|
|
75 |
*
|
|
76 |
* @param moduleLocation
|
|
77 |
* @param outputLocation
|
|
78 |
*/
|
|
79 | 0 |
public Ws4J2eeDeployContextImpl(String moduleLocation,
|
80 |
String outputLocation, |
|
81 |
ClassLoader parentCL) { |
|
82 | 0 |
module = |
83 |
ModuleFactory.createPackageModule(moduleLocation, |
|
84 |
parentCL,new File(outputLocation));
|
|
85 | 0 |
this.moduleLocation = moduleLocation;
|
86 | 0 |
this.outputLocation = outputLocation;
|
87 |
} |
|
88 |
|
|
89 |
/**
|
|
90 |
* Method getMode
|
|
91 |
*
|
|
92 |
* @return
|
|
93 |
*/
|
|
94 | 0 |
public int getMode() { |
95 | 0 |
return Emitter.MODE_ALL;
|
96 |
} |
|
97 |
|
|
98 |
/**
|
|
99 |
* Method getWsdlImplFilename
|
|
100 |
*
|
|
101 |
* @return
|
|
102 |
*/
|
|
103 | 0 |
public String getWsdlImplFilename() {
|
104 | 0 |
return null; |
105 |
} |
|
106 |
|
|
107 |
/**
|
|
108 |
* Method getModule
|
|
109 |
*
|
|
110 |
* @return
|
|
111 |
*/
|
|
112 | 0 |
public Module getModule() {
|
113 | 0 |
return module;
|
114 |
} |
|
115 |
|
|
116 |
/**
|
|
117 |
* Method getModuleLocation
|
|
118 |
*
|
|
119 |
* @return
|
|
120 |
*/
|
|
121 | 0 |
public String getModuleLocation() {
|
122 | 0 |
return moduleLocation;
|
123 |
} |
|
124 |
|
|
125 |
/**
|
|
126 |
* Method getContanier
|
|
127 |
*
|
|
128 |
* @return
|
|
129 |
*/
|
|
130 | 0 |
public String getContanier() {
|
131 | 0 |
return j2eeContainer;
|
132 |
} |
|
133 |
|
|
134 |
/**
|
|
135 |
* Method getImplStyle
|
|
136 |
*
|
|
137 |
* @return
|
|
138 |
*/
|
|
139 | 0 |
public String getImplStyle() {
|
140 | 0 |
return implStyle;
|
141 |
} |
|
142 |
|
|
143 |
/**
|
|
144 |
* Method getOutPutLocation
|
|
145 |
*
|
|
146 |
* @return
|
|
147 |
*/
|
|
148 | 0 |
public String getOutPutLocation() {
|
149 | 0 |
return outputLocation;
|
150 |
} |
|
151 |
|
|
152 |
/**
|
|
153 |
* @return
|
|
154 |
*/
|
|
155 | 0 |
public boolean isCompile() { |
156 | 0 |
return compile;
|
157 |
} |
|
158 |
|
|
159 | 0 |
public Map getProperties() {
|
160 | 0 |
return map;
|
161 |
} |
|
162 |
|
|
163 |
/**
|
|
164 |
* @param b
|
|
165 |
*/
|
|
166 | 0 |
public void setCompile(boolean b) { |
167 | 0 |
compile = b; |
168 |
} |
|
169 |
|
|
170 |
} |
|
171 |
|
|